﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Relaygame.aspx.cs" Inherits="RaceList.activity.mhalloween.Relaygame" %>


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />

    <title>不给糖就捣乱</title>

    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no" />

    <link href="style/layout.css" rel="stylesheet" />
    <script src="js/jquery-1.9.1.min.js"></script>


</head>
<body style="background: #131633;">
    <section id="web_wrap">
        <!-- 页面框架 -->
        <div class="container">
            <audio class="boom"></audio>

            <!-- 开始游戏 -->
            <div class="go_btn_wrap"></div>
            <a href="javascript:;" class="go_btn"></a>


            <!-- 游戏区域 -->
            <div class="gamebg_box">
                <div class="count">
                    <p>只剩<b id="time">30</b>秒</p>
                </div>
                <div class="score">
                    <p><b class="score_point">0</b>分</p>
                </div>
                <div class="chest_box"></div>
                <!-- 宝箱 -->

            </div>

        </div>

    </section>


    <!-- 炮台 -->
    <div class="pao_box">
        <div class="pao_wrap">
            <div class="pao"></div>
            <div class="pao1"></div>
        </div>

        <div class="ant"></div>
    </div>
    <%
        string shareUrl = "relayindex.aspx?" + Parameters.cycle + "=" + SessionHelp.CycleId;
    %>
</body>
</html>
<script src="js/main2.js"></script>
<script id="ghost" src="js/ghost2.min.js" a="<%=IsAward%>" b="<%=Scores%>"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
    $(function () {
        //1.config
        wx.config({
            debug: false,
            appId: "<%= WxConfig.appid %>",
            timestamp: "<%= WxConfig.timestamp %>",
            nonceStr: "<%= WxConfig.noncestr %>",
            signature: "<%= WxConfig.signature %>",
            jsApiList: [
                'checkJsApi',
                'onMenuShareTimeline',
                'onMenuShareAppMessage',
                'onMenuShareQQ',
                'onMenuShareWeibo'
            ] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
        });
        //2.ready
        wx.ready(function () {
            //检查客户端是否支持某个js接口
            wx.checkJsApi({
                jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo'], // 需要检测的JS接口列表，所有JS接口列表见附录2,
                success: function (res) {
                    // 以键值对的形式返回，可用的api值true，不可用为false
                    // 如：{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
                }
            });
            wx.showOptionMenu();
            wx.hideMenuItems({
                menuList: [
                    "menuItem:editTag",
                    "menuItem:delete",
                    "menuItem:copyUrl",
                    "menuItem:originPage",
                    "menuItem:readMode",
                    "menuItem:openWithQQBrowser",
                    "menuItem:openWithSafari",
                    "menuItem:share:email",
                    "menuItem:share:brand"
                ]
            });
            //分享给朋友
            wx.onMenuShareAppMessage({
                title: '偷偷告诉你，分享至好友、群、朋友圈，邀请好友接力打小鬼，累计分数越高，越有机会获得奖品哦！',
                desc: '我在挑战万圣小鬼,你来不来',
                link: "<%= ("http://" + Request.Url.Authority + "/activity/mhalloween/" + shareUrl).AddTimeStamp() %>",
                imgUrl: "<%= "http://" + Request.Url.Authority + "/activity/mhalloween/images/2.png" %>",
                trigger: function (res) {
                    // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
                },
                success: function (res) {
                },
                cancel: function (res) {
                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });
            wx.onMenuShareTimeline({
                title: '偷偷告诉你，分享至好友、群、朋友圈，邀请好友接力打小鬼，累计分数越高，越有机会获得奖品哦！',
                desc: '我在挑战万圣小鬼,你来不来',
                link: "<%= ("http://" + Request.Url.Authority + "/activity/mhalloween/" + shareUrl).AddTimeStamp() %>",
                imgUrl: "<%= "http://" + Request.Url.Authority + "/activity/mhalloween/images/2.png" %>",
                trigger: function (res) {
                    // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容，因为客户端分享操作是一个同步操作，这时候使用ajax的回包会还没有返回
                },
                success: function (res) {
                },
                cancel: function (res) {
                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });
            wx.onMenuShareQQ({
                title: '偷偷告诉你，分享至好友、群、朋友圈，邀请好友接力打小鬼，累计分数越高，越有机会获得奖品哦！',
                desc: '我在挑战万圣小鬼,你来不来',
                link: "<%= ("http://" + Request.Url.Authority + "/activity/mhalloween/" + shareUrl).AddTimeStamp() %>",
                imgUrl: "<%= "http://" + Request.Url.Authority + "/activity/mhalloween/images/2.png" %>",
                trigger: function (res) {
                },
                complete: function (res) {
                },
                success: function (res) {
                },
                cancel: function (res) {

                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });
            wx.onMenuShareWeibo({
                title: '偷偷告诉你，分享至好友、群、朋友圈，邀请好友接力打小鬼，累计分数越高，越有机会获得奖品哦！',
                desc: '我在挑战万圣小鬼,你来不来',
                link: "<%= ("http://" + Request.Url.Authority + "/activity/mhalloween/" + shareUrl).AddTimeStamp() %>",
                imgUrl: "<%= "http://" + Request.Url.Authority + "/activity/mhalloween/images/2.png" %>",
                trigger: function (res) {
                },
                complete: function (res) {
                },
                success: function (res) {
                },
                cancel: function (res) {
                },
                fail: function (res) {
                    alert(JSON.stringify(res));
                }
            });

        });
        //3.error
        wx.error(function (res) {
            win_alert(JSON.stringify(res));
        });
    });
</script>
